package Wrapper;

public class StringDemo {
    public static void main(String[] args) {
        String str1 = "haha";
        String str2 = new String("dengdeng");
        String str3 = new String(new char[]{'h', 'h'});
        String str4 = new String(new byte[]{'2','t'});
        String str5 = new String(new byte[]{'1','2'});

        String s6 ="he";
        String s7 ="hello";
        String s8 ="he"+"llo";
        String s9 = s6 + "llo";
        System.out.println(s7==s8);
        System.out.println(s7==s9);

    }
}
